<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><!DOCTYPE html>
        <html>
        <head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>通知管理</title>
            <link rel="shortcut icon" href="favicon.ico">
            <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
            <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
            <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
            <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
            <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
            <link href="__PUBLIC__/Plugin/style/css/ace.min.css" rel="stylesheet">
        </head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>通知管理
                        <small><a href="{:U('/Admin/Notice/add_edit')}" style="margin-left: 15px; color: #06cbc4">添加通知</a></small>
                    </h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>

                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>

                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>店铺名称</th>
                                <th>通知内容</th>
                                <th>是否显示</th>
                                <th>创建者</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="result" id="result">
                                <tr>
                                    <td>{$result.id}</td>
                                    <td>{$result.store_name}</td>
                                    <td>{$result.content}</td>
                                    <if condition="($result.is_show eq 1)">
                                           <td>显示</td>
                                        <else />
                                           <td>不显示</td>
                                    </if>
                                    <td>{$result.create}</td>
                                    <td>{$result.create_time|date="Y-m-d H:i:s",###}</td>
                                    <td>
                                        <a title="编辑" href="{:U('Admin/Notice/add_edit',array('id'=>$result['id']))}"><i class="glyphicon glyphicon-pencil" style="margin-right: 10px;"></i></a>
                                        <a title="删除" onclick="delGoods({$result['id']})" href="javascript:void(0);"><i class="glyphicon glyphicon-remove"></i></a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                        <div class="pagination" style="margin:0px;">
                            {$page}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $(".i-checks").iCheck({checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green",})
        });
        function delGoods(id) {
            if (confirm("确定要删除吗?") == true) {
                window.location.href = "__CONTROLLER__/del/id/" + id;
            } else {
                return false;
            }
        }
    </script>
</body>
</html>